package com.zmj.mobile.dto;

import com.alibaba.excel.annotation.ExcelProperty;
import com.alibaba.excel.annotation.format.DateTimeFormat;
import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.math.BigDecimal;
import java.time.LocalDateTime;
import java.util.Date;

/**
 * <p>
 * 采购询比价/定价明细表
 * </p>
 *
 * @author lzy
 * @since 2024-02-01
 */
@Data
@ApiModel(value = "QuoteItemDetailDTO对象", description = "采购询比价/定价明细表")
public class QuoteItemDetailDTO {


    @ApiModelProperty(value = "quote_item.id")
    @ExcelProperty(value = "quote_item.id")
    private Long quoteItemId;

    @ApiModelProperty(value = "物料号")
    @ExcelProperty(value = "物料号")
    private String materialCode;

    @ApiModelProperty(value = "物料名称")
    @ExcelProperty(value = "物料名称")
    private String materialName;

    @ApiModelProperty(value = "规格")
    @ExcelProperty(value = "规格")
    private String specification;

    @ApiModelProperty(value = "材质/品牌")
    @ExcelProperty(value = "材质/品牌")
    private String material;

    @ApiModelProperty(value = "图号")
    @ExcelProperty(value = "图号")
    private String drawCode;

    @ApiModelProperty(value = "采购数量")
    @ExcelProperty(value = "采购数量")
    private String amount;

    @ApiModelProperty(value = "计数单位")
    @ExcelProperty(value = "单位")
    private String countUnit;

    @ApiModelProperty(value = "单价")
    @ExcelProperty(value = "单价（元）")
    private String unitPrice;

    @ApiModelProperty(value = "合计")
    @ExcelProperty(value = "合计")
    private String totalPrice;

    @ApiModelProperty(value = "供应商编码")
    @ExcelProperty(value = "供应商编码")
    private String supplierCode;

    @ApiModelProperty(value = "供应商名称")
    @ExcelProperty(value = "供应商名称")
    private String supplierName;

    @ApiModelProperty(value = "供应商单价")
    @ExcelProperty(value = "供应商单价")
    private String supplierPrice;

    @ApiModelProperty(value = "联系人编码")
    @ExcelProperty(value = "联系人编码")
    private String contactCode;

    @ApiModelProperty(value = "联系人")
    @ExcelProperty(value = "联系人")
    private String contactName;

    @ApiModelProperty(value = "发起时间")
    @ExcelProperty("发起时间")
    @DateTimeFormat("yyyy-MM-dd HH:mm:ss")
    private Date createTime;

    @ApiModelProperty(value = "定价编号")
    @ExcelProperty(value = "定价编号")
    private String itemCode;

    @ApiModelProperty(value = "附件")
    @ExcelProperty(value = "附件结果")
    private String attachment;

    @ApiModelProperty(value = "附件路径")
    @ExcelProperty(value = "附件路径")
    private String attachmentPath;

    @ApiModelProperty(value = "定价说明")
    @ExcelProperty(value = "定价说明：")
    private String extraDesc;

    @ApiModelProperty(value = "状态:0草稿;1提交审批中;2审批完成")
    @ExcelProperty(value = "状态:0草稿;1提交审批中;2审批完成")
    private Integer dataStatus;

    @ApiModelProperty(value = "审批流id")
    @ExcelProperty(value = "审批流id")
    private String flowId;

    @ApiModelProperty(value = "申请编号")
    @ExcelProperty(value = "申请编号")
    private String applyNum;

    @ApiModelProperty(value = "创建人")
    @TableField(fill = FieldFill.INSERT)
    @ExcelProperty("发起人姓名")
    private String createUserName;

    @ApiModelProperty(value = "创建人")
    @TableField(fill = FieldFill.INSERT)
    @ExcelProperty("发起人工号")
    private String createUser;
}
